﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Panos.Utils
{
    public class Angle
    {
        public int Degree { get; set; }
        public int Minute { get; set; }
        public double Second { get; set; }

        public double GetDoubleValue()
        {
            return Degree + Minute / 60.0 + Second / 3600;
        }

        public override string ToString()
        {
            return string.Format("{0,11:0.0000000}", GetDoubleValue());
        }
    }
}